<?php
declare(strict_types=1);
namespace app\admin\model;
use aphp\core\Model;
// 生成时间：2024-10-04 13:35:01
class Slide extends Model
{
	protected string $table = 'slide';
	protected string $pk = 'id';

	protected array $validate = [
		['title', 'required', '标题必填', IF_MUST, AC_BOTH],
		['url', 'url', '链接地址错误', IF_VALUE, AC_BOTH],
		['sort', 'number', '排序必须是正数', IF_ISSET, AC_BOTH],
	];

	protected array $auto = [
		['status', '1', 'string', IF_MUST, AC_INSERT],
	];

}